
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-iconfontsuoxiao"></use>
                    </svg>
                    <div class="name">缩小</div>
                    <div class="fontclass">#sqicon-iconfontsuoxiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-cuo"></use>
                    </svg>
                    <div class="name">错</div>
                    <div class="fontclass">#sqicon-cuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-guanbi"></use>
                    </svg>
                    <div class="name">关闭</div>
                    <div class="fontclass">#sqicon-guanbi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-back"></use>
                    </svg>
                    <div class="name">back</div>
                    <div class="fontclass">#sqicon-back</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-less"></use>
                    </svg>
                    <div class="name">less</div>
                    <div class="fontclass">#sqicon-less</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-moreunfold"></use>
                    </svg>
                    <div class="name">more_unfold</div>
                    <div class="fontclass">#sqicon-moreunfold</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-more"></use>
                    </svg>
                    <div class="name">more</div>
                    <div class="fontclass">#sqicon-more</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-suofang"></use>
                    </svg>
                    <div class="name">缩放</div>
                    <div class="fontclass">#sqicon-suofang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-duihao"></use>
                    </svg>
                    <div class="name">对号</div>
                    <div class="fontclass">#sqicon-duihao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-tishi"></use>
                    </svg>
                    <div class="name">提示</div>
                    <div class="fontclass">#sqicon-tishi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-xiangyouxuanzhuan"></use>
                    </svg>
                    <div class="name">向右旋转</div>
                    <div class="fontclass">#sqicon-xiangyouxuanzhuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-xiangzuoxuanzhuan"></use>
                    </svg>
                    <div class="name">向左旋转</div>
                    <div class="fontclass">#sqicon-xiangzuoxuanzhuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-quanxian"></use>
                    </svg>
                    <div class="name">权限</div>
                    <div class="fontclass">#sqicon-quanxian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-chanpinguanli1"></use>
                    </svg>
                    <div class="name">产品管理2</div>
                    <div class="fontclass">#sqicon-chanpinguanli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-changshangguanli1"></use>
                    </svg>
                    <div class="name">厂商管理2</div>
                    <div class="fontclass">#sqicon-changshangguanli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-daibanrenwu1"></use>
                    </svg>
                    <div class="name">代办任务2</div>
                    <div class="fontclass">#sqicon-daibanrenwu1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-fukuanguanli1"></use>
                    </svg>
                    <div class="name">付款管理2</div>
                    <div class="fontclass">#sqicon-fukuanguanli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-yuqicuishou1"></use>
                    </svg>
                    <div class="name">逾期催收2</div>
                    <div class="fontclass">#sqicon-yuqicuishou1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-gongyingshangguanli1"></use>
                    </svg>
                    <div class="name">供应商管理2</div>
                    <div class="fontclass">#sqicon-gongyingshangguanli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-kaipiaoshenqing1"></use>
                    </svg>
                    <div class="name">开票申请2</div>
                    <div class="fontclass">#sqicon-kaipiaoshenqing1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-kehuguanli1"></use>
                    </svg>
                    <div class="name">客户管理2</div>
                    <div class="fontclass">#sqicon-kehuguanli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-laikuanguanli1"></use>
                    </svg>
                    <div class="name">来款管理2</div>
                    <div class="fontclass">#sqicon-laikuanguanli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-lixiangshenqing1"></use>
                    </svg>
                    <div class="name">立项申请2</div>
                    <div class="fontclass">#sqicon-lixiangshenqing1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-toubaoguanli1"></use>
                    </svg>
                    <div class="name">投保管理2</div>
                    <div class="fontclass">#sqicon-toubaoguanli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-zhifubiaoguanli1"></use>
                    </svg>
                    <div class="name">支付表管理2</div>
                    <div class="fontclass">#sqicon-zhifubiaoguanli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-zujintixing1"></use>
                    </svg>
                    <div class="name">租金提醒2</div>
                    <div class="fontclass">#sqicon-zujintixing1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-caidan"></use>
                    </svg>
                    <div class="name">菜单</div>
                    <div class="fontclass">#sqicon-caidan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-fengxianguanli"></use>
                    </svg>
                    <div class="name">风险管理</div>
                    <div class="fontclass">#sqicon-fengxianguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-gongneng"></use>
                    </svg>
                    <div class="name">功能</div>
                    <div class="fontclass">#sqicon-gongneng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-huancunguanli"></use>
                    </svg>
                    <div class="name">缓存管理</div>
                    <div class="fontclass">#sqicon-huancunguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-jichuguanli"></use>
                    </svg>
                    <div class="name">基础管理</div>
                    <div class="fontclass">#sqicon-jichuguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-shiqiaozaixianguanli"></use>
                    </svg>
                    <div class="name">狮桥在线管理</div>
                    <div class="fontclass">#sqicon-shiqiaozaixianguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-wodegongzuo"></use>
                    </svg>
                    <div class="name">我的工作</div>
                    <div class="fontclass">#sqicon-wodegongzuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-woderenwu"></use>
                    </svg>
                    <div class="name">我的任务</div>
                    <div class="fontclass">#sqicon-woderenwu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-xiangmuguanli"></use>
                    </svg>
                    <div class="name">项目管理</div>
                    <div class="fontclass">#sqicon-xiangmuguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-zijinguanli"></use>
                    </svg>
                    <div class="name">资金管理</div>
                    <div class="fontclass">#sqicon-zijinguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-biaoqian"></use>
                    </svg>
                    <div class="name">标签</div>
                    <div class="fontclass">#sqicon-biaoqian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-baoxianguanli"></use>
                    </svg>
                    <div class="name">保险管理</div>
                    <div class="fontclass">#sqicon-baoxianguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-waibujiekou"></use>
                    </svg>
                    <div class="name">外部接口</div>
                    <div class="fontclass">#sqicon-waibujiekou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-liuchengguanli"></use>
                    </svg>
                    <div class="name">流程管理</div>
                    <div class="fontclass">#sqicon-liuchengguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#sqicon-xitongshezhi"></use>
                    </svg>
                    <div class="name">系统设置</div>
                    <div class="fontclass">#sqicon-xitongshezhi</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#sqicon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
